package com.zmn.oms.third.taobao.msghandler.impl;

import com.zmn.common.constant.GlobalConsts;
import com.zmn.oms.model.vo.work.ZsOrderWorkVO;
import com.zmn.oms.third.taobao.msghandler.TmcMsgHandler;
import com.zmn.oms.zmn.business.interfaces.work.ZsOrderWorkQueryBService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 类描述：
 *
 * @author LiangHailong
 * @date 2019/07/24 17:25
 */
public abstract class TmcMsgHandlerBase implements TmcMsgHandler {
    @Autowired
    protected ZsOrderWorkQueryBService zsOrderWorkQueryBService;

    /**
     * 通过淘宝订单号在系统中查对应的订单
     * @param outerId
     * @return
     */
    protected ZsOrderWorkVO queryOrderByOuterId(String outerId) {
        return zsOrderWorkQueryBService.findOrderWorkByOuterId(outerId, null);
    }

}
